﻿@model SDSystem.Models.SiteFriend
@using Ext.Net
@using Ext.Net.MVC
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@(Html.X().FormPanel()
      .ID("CreateSiteView")
      .BodyPadding(5)
          .Buttons(buttons =>
                       {
                           buttons.Add(
                               Html.X().Button().Text("Save").Icon(Icon.Disk).DirectEvents(
                                de =>
                                    {
                                        de.Click.IsUpload = true;
                                        de.Click.Confirmation.ConfirmRequest = true;
                                        de.Click.Confirmation.Title = "Save";
                                        de.Click.Confirmation.Message = "Confirm?";
                                        de.Click.Url = Url.Action("Create");
                                        de.Click.EventMask.ShowMask = true;
                                        de.Click.FormID = "CreateSiteView";
                                })
                               );
                           buttons.Add(
                               Html.X().Button().Text("Back").Icon(Icon.PreviousGreen)
                               );
                       })
      .Items(
          Html.X().FieldSet().Title("SiteFriend Details").Layout(LayoutType.Form).Padding(5).Items(
              Html.X().TextFieldFor(m=>m.SiteName).FieldLabel("GroupNews Name").LabelWidth(100).Width(600).LabelAlign(LabelAlign.Top),
              Html.X().TextFieldFor(m => m.Url).FieldLabel("Tag").LabelWidth(100).LabelAlign(LabelAlign.Top))))

            
